/*
 * eeprom.h
 *
 *  Created on: Oct 15, 2010
 *      Author: ra
 */

#ifndef EEPROM_H_
#define EEPROM_H_

#include <avr/io.h>

struct servo_pos_struct {
   unsigned char pos1;
   unsigned char pos2;
};

typedef struct servo_pos_struct positions;

void save_positions_to_eeprom(unsigned int address, positions *positions);
void read_positions_from_eeprom(unsigned int address, positions *positions);

void EEPROM_write(unsigned int Address, unsigned char Data);
unsigned char EEPROM_read(unsigned int Address);


#endif /* EEPROM_H_ */
